package org.grow.dealBill.controller;

import org.grow.common.deal.DealBillDto;
import org.grow.dealBill.service.DealBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xwg
 * @CreateDate: 21-8-16
 */

@RestController
public class DealBillController {
    @Autowired
    private DealBillService dealBillService;
    @PostMapping("/dbc/deal")
    public String deal(@RequestBody DealBillDto dealBillDto){

        System.out.println("====保存dealbill到数据库");

        Boolean tx = dealBillService.tx(dealBillDto);
        return "===="+tx+"=====";
    }
}
